翻訳と辞書
Words near each other
・ Memphis International Raceway
・ Memphis Invitational
・ Memphis Italian Festival
・ Memphis Jackson
・ Memory of the World Register – International Organizations
・ Memory of the World Register – Latin America and the Caribbean
・ Memory of Water
・ Memory of water
・ Memory of Water (film)
・ Memory of You
・ Memory operations per second
・ Memory ordering
・ Memory organisation
・ Memory overcommitment
・ Memory play
Memory pool
・ Memory Pool System
・ Memory Prime
・ Memory protection
・ Memory ProteXion
・ Memory rank
・ Memory Records
・ Memory Reference Code
・ Memory refresh
・ Memory rehearsal
・ Memory RNA
・ Memory Run
・ Memory safety
・ Memory scrubbing
・ Memory segmentation


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Memory pool : ウィキペディア英語版
Memory pool

Memory pools, also called fixed-size blocks allocation, is the use of pools for memory management that allows dynamic memory allocation comparable to malloc or C++'s operator new. As those implementations suffer from fragmentation because of variable block sizes, it is not recommendable to use them in a real time system due to performance. A more efficient solution is preallocating a number of memory blocks with the same size called the memory pool. The application can allocate, access, and free blocks represented by handles at run time.
Many real-time operating systems use memory pools, such as the Transaction Processing Facility.
Some systems, like the web server Nginx, use the term ''memory pool'' to refer to a group of variable-size allocations which can be later deallocated all at once. This is also known as a ''region''; see region-based memory management.
== Simple memory pool implementation ==
A simple memory pool module can allocate, for example, three pools at compile time with block sizes optimized for the application deploying the module. The application can allocate, access and free memory through the following interface:
*Allocate memory from the pools. The function will determine the pool where the required block fits in. If all blocks of that pool are already reserved, the function tries to find one in the next bigger pool(s). An allocated memory block is represented with a handle.
*Get an access pointer to the allocated memory.
*Free the formerly allocated memory block.
*The handle can for example be implemented with an unsigned int. The module can interpret the handle internally by dividing it into pool index, memory block index and a version. The pool and memory block index allow fast access to the corresponding block with the handle, while the version, which is incremented at each new allocation, allows detection of handles whose memory block is already freed (caused by handles retained too long).

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Memory pool」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.